package eteam.aps.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("xy")
public class XyController {

	@Autowired
	private RedisTemplate<String, Object> redisTemplate;

	@RequestMapping("me")
	public Object me() {
		redisTemplate.opsForValue().set("mykey", "hhh");
		return redisTemplate.opsForValue().get("mykey");
	}
}
